package oris.audio;

import com.sun.speech.freetts.Voice;
import com.sun.speech.freetts.VoiceManager;

public class Teste {


    public static void main(String[] args) {

        VoiceManager voiceManager = VoiceManager.getInstance();
        Voice helloVoice = voiceManager.getVoice("kevin16");

        if (helloVoice == null) {
            System.exit(1);
        }

        helloVoice.allocate();
        helloVoice.setVolume(1.f);
        helloVoice.speak("I wanna fuck, man.");
        helloVoice.deallocate();
        helloVoice.getAudioPlayer().pause();
        System.exit(0);
    }
}
